﻿
namespace badminton
{
    using System;
    using System.Collections.Generic;
    using System.ComponentModel;
    using System.ComponentModel.DataAnnotations;
    using System.Data;
    using System.Linq;
    using System.ServiceModel.DomainServices.EntityFramework;
    using System.ServiceModel.DomainServices.Hosting;
    using System.ServiceModel.DomainServices.Server;


    // Implements application logic using the BadmintonEntities context.
    // TODO: Add your application logic to these methods or in additional methods.
    // TODO: Wire up authentication (Windows/ASP.NET Forms) and uncomment the following to disable anonymous access
    // Also consider adding roles to restrict access as appropriate.
    // [RequiresAuthentication]
    [EnableClientAccess()]
    public class DBFieldsCustomize : LinqToEntitiesDomainService<BadmintonEntities>
    {

        // TODO:
        // Consider constraining the results of your query method.  If you need additional input you can
        // add parameters to this method or create additional query methods with different names.
        // To support paging you will need to add ordering to the 'CityArea' query.
        public IQueryable<CityArea> GetCityArea()
        {
            return this.ObjectContext.CityArea;
        }

        // TODO:
        // Consider constraining the results of your query method.  If you need additional input you can
        // add parameters to this method or create additional query methods with different names.
        // To support paging you will need to add ordering to the 'Court' query.
        public IQueryable<Court> GetCourt()
        {
            return this.ObjectContext.Court;
        }

        // TODO:
        // Consider constraining the results of your query method.  If you need additional input you can
        // add parameters to this method or create additional query methods with different names.
        // To support paging you will need to add ordering to the 'CourtSchedule' query.
        public IQueryable<CourtSchedule> GetCourtSchedule()
        {
            return this.ObjectContext.CourtSchedule;
        }

        // TODO:
        // Consider constraining the results of your query method.  If you need additional input you can
        // add parameters to this method or create additional query methods with different names.
        // To support paging you will need to add ordering to the 'CourtScheduleType' query.
        public IQueryable<CourtScheduleType> GetCourtScheduleType()
        {
            return this.ObjectContext.CourtScheduleType;
        }

        // TODO:
        // Consider constraining the results of your query method.  If you need additional input you can
        // add parameters to this method or create additional query methods with different names.
        // To support paging you will need to add ordering to the 'Hall' query.
        public IQueryable<Hall> GetHall()
        {
            return this.ObjectContext.Hall;
        }

        // TODO:
        // Consider constraining the results of your query method.  If you need additional input you can
        // add parameters to this method or create additional query methods with different names.
        // To support paging you will need to add ordering to the 'HallAdmin' query.
        public IQueryable<HallAdmin> GetHallAdmin()
        {
            return this.ObjectContext.HallAdmin;
        }

        // TODO:
        // Consider constraining the results of your query method.  If you need additional input you can
        // add parameters to this method or create additional query methods with different names.
        // To support paging you will need to add ordering to the 'Student' query.
        public IQueryable<Student> GetStudent()
        {
            return this.ObjectContext.Student;
        }

        // TODO:
        // Consider constraining the results of your query method.  If you need additional input you can
        // add parameters to this method or create additional query methods with different names.
        // To support paging you will need to add ordering to the 'SysAdmin' query.
        public IQueryable<SysAdmin> GetSysAdmin()
        {
            return this.ObjectContext.SysAdmin;
        }

        // TODO:
        // Consider constraining the results of your query method.  If you need additional input you can
        // add parameters to this method or create additional query methods with different names.
        // To support paging you will need to add ordering to the 'Teacher' query.
        public IQueryable<Teacher> GetTeacher()
        {
            return this.ObjectContext.Teacher;
        }

        // TODO:
        // Consider constraining the results of your query method.  If you need additional input you can
        // add parameters to this method or create additional query methods with different names.
        // To support paging you will need to add ordering to the 'Training' query.
        public IQueryable<Training> GetTraining()
        {
            return this.ObjectContext.Training;
        }

        // TODO:
        // Consider constraining the results of your query method.  If you need additional input you can
        // add parameters to this method or create additional query methods with different names.
        // To support paging you will need to add ordering to the 'TrainingCourse' query.
        public IQueryable<TrainingCourse> GetTrainingCourse()
        {
            return this.ObjectContext.TrainingCourse;
        }

        // TODO:
        // Consider constraining the results of your query method.  If you need additional input you can
        // add parameters to this method or create additional query methods with different names.
        // To support paging you will need to add ordering to the 'TrainingCourseGrading' query.
        public IQueryable<TrainingCourseGrading> GetTrainingCourseGrading()
        {
            return this.ObjectContext.TrainingCourseGrading;
        }
    }
}


